package com.base.cn.platform.os.controller.web.classes;

import com.base.cn.platform.os.common.WebBaseController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 班级
 *
 * @author SK
 * @since 2018-05-28
 */
@Controller
@RequestMapping("/web/classes/search")
public class WebClassesController extends WebBaseController {

    /**
     * 搜索话题
     *
     * @param search 话题标题
     * @return 搜索话题结果页面
     */
    @RequestMapping("/searchTopic")
    public String searchTopic(Model model,
                              @RequestParam("search") String search,
                              @RequestParam(value = "order", required = false) Integer order) {
        model.addAttribute("search", search);
        return resultPage("/classes/search-topic");
    }
}
